import request from '@/utils/request'

// 查询考评指标列表
export function listItem(query) {
  return request({
    url: '/assess/item/list',
    method: 'get',
    params: query
  })
}

// 查询考评指标详细
export function getItem(id) {
  return request({
    url: '/assess/item/' + id,
    method: 'get'
  })
}

// 新增考评指标
export function addItem(data) {
  return request({
    url: '/assess/item',
    method: 'post',
    data: data
  })
}

// 修改考评指标
export function updateItem(data) {
  return request({
    url: '/assess/item',
    method: 'put',
    data: data
  })
}

// 删除考评指标
export function delItem(id) {
  return request({
    url: '/assess/item/' + id,
    method: 'delete'
  })
}
// 逻辑删除考评指标
export function delLogicItem(id) {
  return request({
    url: '/assess/item/logicRemove/' + id,
    method: 'delete'
  })
}
// 逻辑批量删除考评指标
export function delLogicBatchItem(id) {
  return request({
    url: '/assess/item/logicBatchRemove/' + id,
    method: 'delete'
  })
}

// 导出考评指标
export function exportItem(query) {
  return request({
    url: '/assess/item/export',
    method: 'get',
    params: query
  })
}
